<HTML><HEAD><TITLE>is_in_domain(++Val, ?Var)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(ic)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>is_in_domain(++Val, ?Var)</H1>
Succeeds iff Val is in the domain of Var
<DL>
<DT><EM>Val</EM></DT>
<DD>A number
</DD>
<DT><EM>Var</EM></DT>
<DD>An IC variable or a number
</DD>
</DL>
<H2>Description</H2>
<P>
   Low level predicate which succeeds when Val is in the domain of Var.  If
   Var is a number, this predicate will succeed iff Var $= Val would succeed
   WITHOUT leaving a delayed goal.

<H3>Modes and Determinism</H3><UL>
<LI>is_in_domain(++, ?) is semidet
</UL>
<H3>Exceptions</H3>
<DL>
<DT><EM>(4) instantiation fault </EM>
<DD>Val is not ground
<DT><EM>(5) type error </EM>
<DD>either Val or Var is not a numeric type
<DT><EM>(undecidable comparison of bounded reals) </EM>
<DD>Val was a bounded real which overlapped a bound of Var
</DL>
<H2>See Also</H2>
<A HREF="../../lib/ic/is_in_domain-3.html">is_in_domain / 3</A>
</BODY></HTML>
